package com.itheima.demo1;

public class Test {
    public static void main(String[] args) {
        Diannao diannao = new Diannao();
        diannao.powerOn();
        diannao.useDevice(new Jianpan());
        diannao.useDevice(new Shubiao());

        diannao.powerOff();
    }
}
